package com.travel.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class CarOrderDto {
    /**
     * 所在城市id
     */
    @TableField(value = "city_id")
    private Integer cityId;

    /**
     * 汽车id 对应汽车表
     */
    @TableField(value = "car_id")
    private Integer carId;

    /**
     * 租车公司id
     */
    @TableField(value = "car_company_id")
    private Integer carCompanyId;

    /**
     * 汽车名
     */
    @TableField(value = "carName")
    private String carName;

    /**
     * 汽车类型
     */
    @TableField(value = "car_type")
    private String carType;

    /**
     * 座位数量
     */
    @TableField(value = "seats")
    private Integer seats;

    /**
     * 车门数量
     */
    @TableField(value = "doors")
    private Integer doors;

    /**
     * 手动挡还是自动挡
     */
    @TableField(value = "driving_style")
    private String drivingStyle;

    /**
     * 发动机排量
     */
    @TableField(value = "engine_capacity")
    private Double engineCapacity;

    /**
     * 汽车品牌
     */
    @TableField(value = "car_brand")
    private String carBrand;


    /**
     * 取车地点
     */
//    @TableField(value = "pick_up_location")
    private String pickupCity;

    //具体地点
    private String pickupLocation;

    /**
     * 还车地点
     */
//    @TableField(value = "return_location")
    private String returnCity;

    private String returnLocation;

    //租车天数
    private Integer rentalDays;

    //单价
    private BigDecimal price;

    //租车开始时间
    private Date rentalDateRange;
    //租车结束时间
    private Date rentalDateRange1;

    /**
     * 租车公司 相关
     */
    //公司名称
//    @TableField(value = "name")
    private String Company;

    //地址
    @TableField(value = "address")
    private String address;

    //营业时间
    @TableField(value = "business_time")
    private LocalDateTime businessTime;

    /**
     * 驾驶员 相关
     */
    private String driver;

    //身份证号
    private String idCard;

    //手机号
    private String phone;

    //总价
    private BigDecimal Totalprice;

    //订单号
    private String orderNumber;

}
